package com.example.pixelyear.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.example.pixelyear.ui.base.BaseFragment


/**
 * time 2019/6/27 8:39
 * desc: 不带tabLayout 的ViewPager适配器
 */

class SimplePagerTKAdapter(fm: FragmentManager, val list: MutableList<BaseFragment>) : FragmentPagerAdapter(fm) {
    override fun getItem(position: Int): Fragment {
        return list[position]
    }


    override fun getCount(): Int {
        return list.size
    }
}